<template>
	<view class="text" >
		<u--image class="image" :src="oss_host+dat.appLogo" radius="10px" width="286.26rpx" height="286.26rpx" ></u--image>
		<view class="appName" >{{dat.appName}}</view>
		<view class="appDes">{{dat.appDes}}</view>
		
	</view>
</template>

<script>
	import { oss_host } from '../../utils/appInfo'
	export default {
		data() { 
			return {
				dat:{},
				oss_host:oss_host
			}
		},
		onLoad(on_res) {
			
			let _id=on_res.id
			this.api.product().then(res=>{
				this.dat=res.data
			})
			
			this.api.getStatus({id:_id}).then(res=>{
				setTimeout(()=>{				
					if(res.data.status==0){
						uni.navigateTo({
							url:"../edit/pass_verif?id="+_id
						})
					}else if(res.data.status==1){
						uni.navigateTo({
							url:"../detail0/index?id="+_id
						})
					}else if(res.data.status==2){
						uni.navigateTo({
							url:"../detail1/index?id="+_id
						})
					}else if(res.data.status==3){
						uni.navigateTo({
							url:"../judgment/error?id="+_id
						})
					}
				},1500)
			})

		}
	}
</script>

 <style lang="scss">
	
	.text{
		overflow-y: hidden;
		text-align: center;
		.image{
			margin-top: 368rpx;
			align-items: center;
		}
		.appName{
			color: rgba(0, 0, 0, 1);
			margin-top: 68.7rpx;
			text-align: center;
			font-size: 45.8rpx;
		}
		.appDes{
			margin-top: 59.61rpx;
			color: rgba(128, 128, 128, 1);
			font-size: 40rpx;
		}
	}
</style>


